package com.bailong.nanny.dao.impl;

import com.bailong.nanny.d.LoginDao;
import com.bailong.nanny.entity.Admin;
import com.bailong.nanny.util.JdbcUtils;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
public class LoginDaoImpl implements LoginDao {
    @Override
    public Admin LoginDao(String name,String password) {
        return JdbcUtils.Login(Admin.class,
                "select * from tab_admin where admin_name=? and admin_password = ?",name,password);
    }
}
